<?php

interface Junction_Db_Adapter {

	/**
	 * @throws Junction_Db_Exception
	 * 
	 * The array is expected to have the following keys:
	 *  1. db_driver
	 *  2. db_name
	 *  3. db_host
	 *  4. db_user
	 *  5. db_pass
	 * 
	 * @param array $dsn
	 */
	public function connectTo(array $dsn);

	/**
	 * @return a connection to the database.
	 */
	public function getConnection();
}
?>